package com.cmic.rcs.emoji.mapper;


import com.cmic.rcs.emoji.entity.pojo.TBusinessTopology;
import io.mybatis.mapper.Mapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

/**
 * 业务拓扑图Mapper接口
 * 
 * @author 系统生成
 * @since 2025-10-15
 */
public interface TBusinessTopologyMapper extends Mapper<TBusinessTopology, Long> {

    /**
     * 根据企业编码查询拓扑图
     * @param enterpriseCode 企业编码
     * @return 拓扑图信息
     */
    @Select("select * from t_business_topology where enterprise_code = #{enterpriseCode}")
    TBusinessTopology selectByEnterpriseCode(String enterpriseCode);

    /**
     * 根据企业编码删除拓扑图
     * @param enterpriseCode 企业编码
     */
    @Select("delete from t_business_topology where enterprise_code = #{enterpriseCode}")
    void deleteByEnterpriseCode(String enterpriseCode);


    @Delete("delete from t_business_topology where id = #{id}")
    void deleteByID(Long id);
}